import csv
import io
csv_data="""id,name
1,Lilisi
2,Malike
3,Jack
"""

csv_fp = io.StringIO(csv_data)
csv_reader = csv.DictReader(csv_fp)
for row in csv_reader:
    print(row["id"],row["name"])

csv_fp.close()